package com.game.modular.game.playerInfo.controller;

import com.game.modular.game.playerInfo.service.PlayerRankServiceImpl;
import com.game.modular.game.playerInfo.domain.PlayerRank;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import com.game.comment.core.ResponseResult;

import java.util.List;


/**
 * 玩家信息(PlayerRank)表服务控制层
 *
 * @author cxy
 * @since 2024-09-09 18:30:33
 */
@Api(tags = "玩家信息(PlayerRank)") 
@Validated
@RestController
@AllArgsConstructor
@RequestMapping("/playerRank")
public class PlayerRankController {
    @Resource
    private PlayerRankServiceImpl playerRankService;
    
    @ApiOperation("获取玩家信息列表")
    @PostMapping("/list")
    public ResponseResult<List<PlayerRank>> list() {
        return ResponseResult.success(playerRankService.list());
    }
}
